package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wanglong
 * @date 2024/3/20
 * @apiNote 返回给前台的内容
 */
@Data
@ToString
public class EmployeeVo implements Serializable {
    private static final long serialVersionUID = -1258477847889618488L;

    /** 员工主键 */
    private Long id;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String name;

    /** 员工性别 */
    @Excel(name = "员工性别")
    private String sex;

    /** 员工照片 */
    @Excel(name = "员工照片")
    private String photo;

    /** 员工生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "员工生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 员工学历 */
    @Excel(name = "员工学历")
    private String school;

    /** 员工介绍 */
    @Excel(name = "员工介绍")
    private String other;

    /** 职位外键 */
    @Excel(name = "职位外键")
    private Long positionid;

    /** 职位列表 */
    @Excel(name = "职位列表")
    private PositionVO postVo;

    /** 部门列表 */
    @Excel(name = "部门列表")
    private DepartmentVo departmentVo;
}
